import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: ()=> import('@/views/Home')
  },
  {
    path: '/songdetails',
    name: 'SongDetails',
    component: ()=> import('@/components/details/SongDetails')
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
